<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="signupForm">
                        <input id="id" name="id" th:value="${chapterItemBank.id}" type="hidden">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">课程：</label>
                            <div class="col-sm-8">
                                <input id="coursesIdHidden" class="form-control"  type="hidden" th:value="${chapterItemBank.coursesId}" />
                                <select id="coursesId" name="coursesId" class="form-control">
                                    <option value="">请选择</option>
                                    <option th:each="item : ${courses}" th:selected="${chapterItemBank.coursesId eq item.id}"
                                            th:value="${item.id}" th:text="${item.name}"></option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">章节：</label>
                            <div class="col-sm-8">
                                <input id="chapterIdHidden" class="form-control" type="hidden" th:value="${chapterItemBank.chapterId}" />
                                <select id="chapterId" name="chapterId" class="form-control">
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">类型：</label>
                            <div class="col-sm-8">
                                <input id="typeHidden"  th:value="${chapterItemBank.type}"
                                       class="form-control" type="hidden">
                                <select id="type" name="type" placeholder="请选择类型" class="form-control" >
                                    <option value="">请选择</option>
                                    <option value="0">练习</option>
                                    <option value="1">测试</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">题目类型：</label>
                            <div class="col-sm-8">
                                <input id="topicTypesHidden"  th:value="${chapterItemBank.topicTypes}"
                                       class="form-control" type="hidden">
                                <select id="topicTypes" name="topicTypes" class="form-control">
                                    <option value="">请选择</option>
                                    <option value="0">单选题</option>
                                    <option value="1">多选题</option>
                                    <option value="2">判断题</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">题目内容：</label>
                            <div class="col-sm-8">
                                <textarea id="contents" name="contents" th:text="${chapterItemBank.contents}"
                                       class="form-control" type="text"></textarea>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">答案选项(选项间以双英文分号;;分隔)：</label>
                            <div class="col-sm-8">
                                <textarea id="options" name="options" th:text="${chapterItemBank.options}"
                                       class="form-control" type="text"></textarea>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">正确答案(答案间以双英文分号;;分隔)：</label>
                            <div class="col-sm-8">
                                <input id="rightKey" name="rightKey" th:value="${chapterItemBank.rightKey}"
                                       class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">题目解析：</label>
                            <div class="col-sm-8">
                                <input id="topicAnalysis" name="topicAnalysis"
                                       th:value="${chapterItemBank.topicAnalysis}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">分值：</label>
                            <div class="col-sm-8">
                                <input id="score" name="score" th:value="${chapterItemBank.score}" class="form-control"
                                       type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-8 col-sm-offset-3">
                                <button type="submit" class="btn btn-primary">提交</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<div th:include="include::footer"></div>
<script src="//s.xlongwei.com/res/js/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="/js/webJs/jzweb/chapterItemBank/edit.js">
</script>
</body>
</html>
